import {UserType} from "../models/user";
// 定义两个方法，一个获取当前用户，一个设置当前用户
let currentUser: UserType;
const setCurrentUserState = (user: UserType) => {
    currentUser = user;
}
const getCurrentUserState = (): UserType => {
    return currentUser;
}
export {
    setCurrentUserState,
    getCurrentUserState,
}
